package com.ztrue.framework.core.event;

import com.ztrue.framework.infrastructure.ISequenceMessage;

/**
 * 表示一个领域事件
 *
 * @author zhangw
 * @date 2016/10/27 14:34
 * @version: 1.0
 */
public interface IDomainEvent<ATID extends Object> extends ISequenceMessage {
    /**
     * 获取聚合根ID
     *
     * @return
     */
    ATID getAggregateRootId();

    /**
     * 设置聚合根ID
     *
     * @param aggregateRootId
     */
    void setAggregateRootId(ATID aggregateRootId);
}
